import { IsNumber, IsNotEmpty, IsString, MinLength } from 'class-validator';
export class UpdatePasswordDto {
  @IsNumber({}, { message: 'id 必须为数字' })
  @IsNotEmpty({ message: 'id 不能为空' })
  id: number;

  @IsString({ message: '密码必须为字符串' })
  @MinLength(6, { message: '密码长度不能小于6位' })
  @IsNotEmpty({ message: '密码不能为空' })
  password: string;
}
